<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
$return=array();
/*******basic*******/
if($_RQ['op']=='basic'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('basic',$postdata);
		exi('设置成功');
	}
	$return['item']=$this->plugin_setting('basic');
	$htmls=array(
		'type'=>'edit',
		'desc'=>'参数设置',
		'edit'=>array(
			array('type'=>'string','title'=>'服务器地址','name'=>'serveraddr','help'=>'默认：sdk.cloudroom.com'),
			array('type'=>'string','title'=>'appid','name'=>'appid','help'=>'https://sdk.cloudroom.com/开通获取'),
			array('type'=>'string','title'=>'secret','name'=>'secret','help'=>'https://sdk.cloudroom.com/开通获取'),
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
/*******basic*******/
/*******op*******/
